﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PhanMemQuanLyThuChi
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void btnQLThu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmThu _frmThu = new frmThu();
            _frmThu.ShowDialog();
        }

        private void btnQLChi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmChi _frmChi = new frmChi();
            _frmChi.ShowDialog();
        }

        private void btnLoai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmLoaiThuChi _frmLoai = new frmLoaiThuChi();
            _frmLoai.ShowDialog();
        }

        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmThongKe _frmThongKe = new frmThongKe();
            _frmThongKe.ShowDialog();
        }

        private void btnDVT_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmDVT _frmdvt = new frmDVT();
            _frmdvt.ShowDialog();
        }

        private void frmMain_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F3)
            {
                frmThu _frmThu = new frmThu();
                _frmThu.ShowDialog();
            }
            if (e.KeyCode == Keys.F4)
            {
                frmChi _frmChi = new frmChi();
                _frmChi.ShowDialog();
            }
            if (e.KeyCode == Keys.F5)
            {
                frmLoaiThuChi _frmLoai = new frmLoaiThuChi();
                _frmLoai.ShowDialog();
            }
            if (e.KeyCode == Keys.F6)
            {
                frmThongKe _frmThongKe = new frmThongKe();
                _frmThongKe.ShowDialog();
            }
            if (e.KeyCode == Keys.F7)
            {
                frmDVT _frmdvt = new frmDVT();
                _frmdvt.ShowDialog();
            }
        }

        private void btnThongTin_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmQuanLyTon _frmTienTon = new frmQuanLyTon();
            _frmTienTon.ShowDialog();
        }
    }
}
